#include "esp_event_base.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

//创建一个测距事件组句柄
extern EventGroupHandle_t s_HC_SR04_event_group;
extern TaskHandle_t Distance_task_hdl;

//测距开始事件位 RANGING
#define RANGING_START BIT0
#define RANGING_END   BIT1

typedef void (*StaticFunctionPtr)(int);
extern StaticFunctionPtr MeasureDisFuncptr;


void GPIO_HC_SR04_Start_Init();
void HC_SR04_Init();
